<template>
  <div class="hhhh">111</div>
</template>

<style>
.hhhh {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 9999;
  background: #fff;
}
</style>
<script>
export default {
  created() {
    this.GetOpenId();
  },
  data() {
    return {};
  },
  methods: {
    GetOpenId() {
      var _this = this;
      var aaa = _this.GetQueryString("data");
      console.log(aaa);
      this.$router.push("/recommend");
      // if (aaa != "") {
      //   this.$router.push("/recommend");
      // }
    },
    GetQueryString(name) {
      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
      var r = window.location.search.substr(1).match(reg); //获取url中"?"符后的字符串并正则匹配
      var context = "";
      if (r != null) context = r[2];
      reg = null;
      r = null;
      return context == null || context == "" || context == "undefined"
        ? ""
        : context;
    }
  }
};
</script>